package com.greate.community.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 投诉实体类
 * 用于存储用户提交的投诉信息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Complaint {
    /**
     * 投诉ID
     */
    private int id;
    
    /**
     * 提交投诉的用户ID
     */
    private int userId;
    
    /**
     * 投诉标题
     */
    private String title;
    
    /**
     * 投诉内容
     */
    private String content;
    
    /**
     * 投诉状态
     * 0-待处理; 1-处理中; 2-已解决; 3-已关闭
     */
    private int status;
    
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 更新时间
     */
    private Date updateTime;
    

    @Override
    public String toString() {
        return "Complaint{" +
                "id=" + id +
                ", userId=" + userId +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", status=" + status +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}